package com.labbit.platform.commons.exception.message;

/**
 * @description:
 * @Author: CHEN YU
 * @Date: 2020-12-26 13:03
 **/
public enum  SessionError implements ExceptionMessage {

    NOT_TOKEN(10000, "TOKEN为空"),
    NOT_LOGIN(10000, "用户未登录或登录超时");

    private int code;
    private String message;

    SessionError(int code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String getMessage() {
        return message;
    }

    @Override
    public int getCode() {
        return code;
    }
}
